package com.analysis.enums;

/**
 * @Date 2025/8/29
 * @Author 蒋棒
 */
public enum AddTypeEnum {

    MANUAL_ADD(1, "手工添加"),
    AUTO_ADD(2, "自动添加"),
    ;

    private Integer source;
    private String name;

    AddTypeEnum(Integer source, String name) {
        this.source = source;
        this.name = name;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getName(Integer source) {
        for (AddTypeEnum modelChatClientEnum : AddTypeEnum.values()) {
            if (modelChatClientEnum.getSource().equals(source)) {
                return modelChatClientEnum.getName();
            }
        }
        return null;
    }
}
